﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <script src="../Content/scripts/jquery-1.11.1.min.js"></script>
    <script src="../Content/scripts/bootstrap/bootstrap.min.js"></script>
    <link href="../Content/scripts/plugins/jquery-ui/jquery-ui.min.css" rel="stylesheet" />
    <script src="../Content/scripts/plugins/jquery-ui/jquery-ui.min.js"></script>
    <!-- Bootstrap -->
    <link rel="stylesheet" type="text/css" href="../css/bootstrap.min.css" />
    <link href="../Content/styles/font-awesome.min.css" rel="stylesheet" />
    <link href="../Content/adminLTE/css/index.css" rel="stylesheet" />
    <link href="../Content/scripts/plugins/jqgrid/jqgrid.css" rel="stylesheet" />
    <link rel="Shortcut icon" href="../images/favicon.ico" />
    <link href="../Content/styles/learun-ui.css" rel="stylesheet" />
    <script src="../Content/scripts/plugins/layout/jquery.layout.js"></script>
    <script src="../Content/scripts/plugins/dialog/dialog.js"></script>
    <script src="../Content/scripts/plugins/jqgrid/grid.locale-cn.js"></script>
    <script src="../Content/scripts/plugins/jqgrid/jqgrid.min.js"></script>
    <script src="../Content/scripts/plugins/validator/validator.js"></script>
    <script src="../Content/scripts/utils/learun-ui.js"></script>
    <script src="../Content/scripts/utils/learun-form.js"></script>
    <script src="../My97DatePicker/WdatePicker.js"></script>
    <script src="../js/getUrlParam.js"></script>
    <script src="PersonJS.js"></script>
    <style>
        html, body {
            height: 100%;
            width: 100%;
        }
    </style>
</head>
<body>
    <div style="margin-left: 10px; margin-top: 20px; margin-right: 30px;">
        <table class="form" id="personeditform" style="margin-top:10px;">
            <tr>
                <th class="formTitle">用户编号<font face="宋体">*</font></th>
                <td class="formValue">
                    <input id="UserNo" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" readonly />
                </td>
                <th class="formTitle">用户名<font face="宋体">*</font></th>
                <td class="formValue">
                    <input id="UserName" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
                </td>
            </tr>
            <tr>
                <th class="formTitle">密码<font face="宋体">*</font></th>
                <td class="formValue">
                    <input id="UserPwd" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
                </td>
                <th class="formTitle">联系方式<font face="宋体">*</font></th>
                <td class="formValue">
                    <input id="Tel" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
                </td>
            </tr>

            <tr>
                <th class="formTitle">角色名<font face="宋体">*</font></th>
                <td class="formValue">
                    <input id="RoleName" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" readonly />
                </td>
                <th class="formTitle">所属客户<font face="宋体">*</font></th>
                <td class="formValue">
                    <input id="CustomerName" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" readonly />
                </td>
            </tr>

        </table>
    </div>

    <script>
        var IDS = UrlParam.paramValues("PersonID");
        var PersonID = IDS[0];

        $.personjs.initeditperson(PersonID);

        // 保存表单  
        function AcceptClick(grid) {
            if (!$('#personeditform').Validform()) {
                return false;
            }

            var UserNo = $('#UserNo').val();
            var UserName = $('#UserName').val();
            var Password = $('#Password').val();
            var Tel = $('#Tel').val();
            var CustomerName = $('#CustomerName').val();
            var RoleName = $('#RoleName').val();

            $.personjs.editPersonInfo(UserNo, UserName, Password, Tel, CustomerName, RoleName, grid);
        }
    </script>
</body>
</html>

